package com.yonyou.framework.library.common.utils;

import java.util.List;

/**
 *
 * Created by qyd on 2017/7/3.
 */

public class ListUtil {

    /**
     *
     * @param list
     * @return
     */
    public static boolean isListEmpty(List list) {
        return (null == list || list.size() == 0);
    }

    /**
     *
     * @param list
     * @return
     */
    public static boolean isListNotEmpty(List list) {
        return !isListEmpty(list);
    }

    /**
     *
     * @param list
     * @return
     */
    public static boolean isArrayNotEmpty(Object[] list) {
        return !isArrayEmpty(list);
    }
    /**
     *
     * @param list
     * @return
     */
    public static boolean isArrayEmpty(Object[] list) {
        return (null == list || list.length == 0);
    }

}
